import {get, post, del, put} from "@/apis/http/request";
import {Dic} from "@/apis/model/system/DicModel";

/**
* 得到列表
* @param params
*/
export const getDicList = (params: any) => get("/dic/list", params)

/**
* 得到分页列表
* @param params
*/
export const dicPage = (params: any) => post("/dic/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDicById = (id: number) => del("/dic/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDic = (param: Dic) => post("/dic", param)

/**
* 更新数据
* @param param
*/
export const updateDic = (param: Dic) => put("/dic", param)